package com.bst.bsj.bops.web.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bst.bsj.bops.web.biz.PictureService;
import com.bst.bsj.common.dal.daointerface.PictureDAO;
import com.bst.bsj.common.dal.dataobject.Picture;

@Service("pictureService")
public class PictureServiceImpl implements PictureService {


  @Autowired
  private PictureDAO pictureDAO;

  @Override
  public List<Picture> selectAll() {
    return pictureDAO.selectAll();
  }

  @Override
  public void insert(Picture picture) {
    pictureDAO.insert(picture);
  }

  @Override
  public int delete(Long id) {
    return pictureDAO.delete(id);
  }

  @Override
  public void update(Picture picture) {
    pictureDAO.update(picture);
  }

  @Override
  public Picture getPicture(Long id) {
    return pictureDAO.getPicture(id);
  }

}
